package com.roncoo.permission.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Message {

    private Integer code ;

    private Object obj;

    private Boolean statu = true;

    private String msg;

    public Message(Integer code, Boolean statu) {
        this.code = code;
        this.statu = statu;
    }

    public Message(Integer code) {
        this.code = code;
    }

    public Message(Object obj) {
        this.obj = obj;
    }

    public Message(Boolean statu) {
        this.statu = statu;
    }

    public Message(String msg) {
        this.msg = msg;
    }

    public Message(Object obj, Boolean statu) {
        this.obj = obj;
        this.statu = statu;
    }

    public Message(Integer code, Object obj) {
        this.code = code;
        this.obj = obj;
    }

    public Message(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Message(Boolean statu, String msg) {
        this.statu = statu;
        this.msg = msg;
    }
}
